package com.effectiv.crm.converter;

import lombok.extern.slf4j.Slf4j;

import org.springframework.beans.BeanUtils;
import org.springframework.core.convert.converter.Converter;

import com.effectiv.crm.domain.PickListEntry;

@Slf4j
public class StringToPickListEntryConverter implements Converter<String, PickListEntry> {

	public PickListEntry convert(String id) {
		log.info("Picklist converter - {}", id);
		PickListEntry e = BeanUtils.instantiate(PickListEntry.class);
		e.setId(id);
		return e;
	}

}
